package Excise4;

public class zuoye3 {
	public static void printChars(char ch1, char ch2, int numberPerLine) {
		int num = 0;
		for (char ch = ch1; ch <= ch2; ch++) {
			System.out.print(ch);
			num++;
			if(num % numberPerLine == 0) {
				System.out.println();
			}
		}
	}
	
	public static void main(String[] args) {
		printChars('1', 'Z', 10);
	}
}
